/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;
import java.util.ArrayList;
/**
 *
 * @author Martin
 */
public class Task {
    private String name;
    private String disclaimer;
    private String startDate;
    private String endDate;
    private TaskDescription taskDesc;
    private ArrayList<PartOrder> partOrders;

    public Task(String name, String disclaimer, String startDate, String endDate, TaskDescription taskDesc) {
        this.name = name;
        this.disclaimer = disclaimer;
        this.startDate = startDate;
        this.endDate = endDate;
        this.taskDesc = taskDesc;
        partOrders = new ArrayList<PartOrder>();
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    
    /**
     * @return the disclaimer
     */
    public String getDisclaimer() {
        return disclaimer;
    }

    /**
     * @param disclaimer the disclaimer to set
     */
    public void setDisclaimer(String disclaimer) {
        this.disclaimer = disclaimer;
    }

    /**
     * @return the startDate
     */
    public String getStartDate() {
        return startDate;
    }

    /**
     * @param startDate the startDate to set
     */
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    /**
     * @return the endDate
     */
    public String getEndDate() {
        return endDate;
    }

    /**
     * @param endDate the endDate to set
     */
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    /**
     * @return the taskDesc
     */
    public TaskDescription getTaskDesc() {
        return taskDesc;
    }

    /**
     * @param taskDesc the taskDesc to set
     */
    public void setTaskDesc(TaskDescription taskDesc) {
        this.taskDesc = taskDesc;
    }

    /**
     * @return the partOrders
     */
    public PartOrder getPartOrders(int index) {
        return partOrders.get(index);
    }

    /**
     * @param partOrders the partOrders to set
     */
    public void setPartOrders(PartOrder partOrder) {
        partOrders.add(partOrder);
    }
    
    
}
